<!-- 党群活动 -->
<template>
  <component :is="componentName" @change="changeComponent" />
</template>

<script>
import List from "./list.vue";
import Drafts from "./drafts.vue";

export default {
  components: {
    List,
    Drafts,
  },
  data() {
    return {
      componentName: "List",
    };
  },
  watch: {},
  created() {},
  methods: {
    changeComponent(name) {
      this.componentName = name;
    },
  },
};
</script>
